<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">

<title>商家信息</title>
		<meta name="renderer" content="webkit">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="format-detection" content="telephone=no">
		
		<link href="/static/weichat/css/style.css" rel="stylesheet" type="text/css" media="all" />
		<link rel="stylesheet" type="text/css" href="/static/manage/common/bootstrap/js/bootstarp-3.3.7/css/bootstrap.min.css" />
		<script src="/static/manage/common/bootstrap/js/jquery-3.2.0.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="/static/manage/common/bootstrap/js/bootstarp-3.3.7/js/bootstrap.min.js" type="text/javascript" charset="utf-8"></script>
		<link rel="stylesheet" type="text/css" href="/static/manage/common/bootstrap/js/bootstarp-table-1.11.1/bootstrap-table.min.css" />
		<script src="/static/manage/common/bootstrap/js/bootstarp-table-1.11.1/bootstrap-table.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="/static/manage/common/bootstrap/js/bootstarp-table-1.11.1/bootstrap-table-zh-CN.min.js" type="text/javascript" charset="utf-8"></script>
		

</head>
	
<body>
		
		 
		
		
		
	<form class="form-inline" action="/bisshop/" method="post">
		<p align="left">
  			<div class="form-group"><!---->
   			 	<label for="exampleInputName2">店铺编号:</label>
    			<input type="text" class="form-control" id="shop_id" name="shop_id" placeholder="请输入编号">
  			</div>
  			<div class="form-group">
    			<label for="exampleInputName2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;店铺名称:</label>
    			<input type="text" class="form-control" id="shop_name" name="shop_name" placeholder="请输入要查字">
  			</div>
  			<div class="form-group">
   				<label for="exampleInputName2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;状态:</label>
  				<select class="form-control" id="show_status" name="show_status">
  					<option value="">--------------------------------</option>
  					<option value="0">禁用</option>
  					<option value="1">启用</option>
  				</select>
  			</div>
  		</p>
  		<p align="left">
  			<div class="form-group">
    			<label for="exampleInputName2">店主账号:</label>
    			<input type="text" class="form-control" id="account" name="account" placeholder="">
  			</div>
  			<div class="form-group">
    			<label for="exampleInputName2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;店铺简称:</label>
    			<input type="text" class="form-control" id="short_name" name="short_name" placeholder="">
  			</div>
  			<div class="form-group">
    			<label for="exampleInputName2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;营业执照:</label>
    			<input type="text" class="form-control" id="shop_license" name="shop_license" placeholder="">
  			</div>
  			
  			<button type="button" class="btn btn-primary" id="butt">搜索</button>
  			<button type="reset" class="btn btn-primary" id="butt2">重置</button>
  		</p>

</form>
		
<!-- 添加模态框  -->	
<!-- Large modal -->
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#mymodel1" >添加</button>

<div class="modal fade bs-example-modal-lg" id="mymodel1" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel">
  <div class="modal-dialog modal-lg" role="document">
    <div class="modal-content">
      		
      	<form class="form-inline" id="fm" method="post" action="/bisshop/add" enctype ="multipart/form-data">
      		   <label for="accountT">新增店铺信息</label>      			
      		<table class="table table-bordered">
 				 <tr>
 				 	<td>
 				 		<label for="account">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;店主账号:</label>
 				 	</td>
 				 	<td>
 				 		<select class="form-control" id="owner_id" name="owner_id">
 				 			
    						<option value="">----------------------------------</option>
    						
    					</select>
 				 	</td>
 				 	<td>
 				 		<label for="show_status">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;状态:</label>
 				 	</td>
 				 	<td>
 				 		<select class="form-control" id="show_status" name="show_status">
    						<option value="">---------------------------------</option>
    						<option value="0">禁用</option>
    						<option value="1">启用</option>
    					</select>
 				 	</td>
 				 </tr>
 				 <tr>
 				 	<td>
 				 		<label for="shop_name">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;店铺名称:</label>
 				 	</td>
 				 	<td>
 				 		<input type="text" class="form-control" id="shop_name2" name="shop_name" placeholder="">
 				 	</td>
 				 	<td>
 				 		<label for="short_name">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;店铺简称:</label>
 				 	</td>
 				 	<td>
 				 		<input type="text" class="form-control" id="short_name2" name="short_name" placeholder="">
 				 	</td>
 				 </tr>
 				 <tr>
 				 	<td>
 				 		<label for="month_cash_in">&nbsp;月目标现金收入:</label>
 				 	</td>
 				 	<td>
 				 		<input type="text" class="form-control" id="month_cash_in2" name="month_cash_in" placeholder="">
 				 	</td>
 				 	<td>
 				 		<label for="month_expend_in">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;月目标消耗收入:</label>
 				 	</td>
 				 	<td>
 				 		<input type="text" class="form-control" id="month_expend_in2" name="month_expend_in" placeholder="">
 				 	</td>
 				 </tr>
 				 <tr>
 				 	<td>
 				 		<label for="shop_image">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;店铺标志:</label>
 				 	</td>
 				 	<td>
 				 		<input type="file" id="shop_image2" name="file">
 				 	</td>
 				 	<td>
 				 		<label for="shop_detail_image">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;店铺封面图:</label>
 				 	</td>
 				 	<td>
 				 		<input type="file" id="shop_detail_image2" name="file">
 				 	</td>
 				 </tr>
 				  <tr>
 				 	<td>
 				 		<label for="shop_license">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;营业执照号:</label>
 				 	</td>
 				 	<td>
 				 		<input type="text" class="form-control" id="shop_license2" name="shop_license" placeholder="">
 				 	</td>
 				 	<td>
 				 		<label for="times">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;营业时间:</label>
 				 	</td>
 				 	<td>
 				 		<input type="time" class="form-control" id="begin_time2" name="begin_time"  placeholder="">
 				 		<span>-</span>
 				 		<input type="time" class="form-control" id="end_time2" name="end_time" placeholder="">
 				 	</td>
 				 </tr>
 				  <tr>
 				 	<td>
 				 		<label for="shop_area">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;店铺面积:</label>
 				 	</td>
 				 	<td>
 				 		<input type="text" class="form-control" id="shop_area2" name="shop_area" placeholder="">m²		
 				 	</td>
 				 	<td>
 				 		<label for="shop_project">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;主营项目:</label>
 				 	</td>
 				 	<td>
 				 		<input type="text" class="form-control" id="shop_project2" name="shop_project" placeholder="">
 				 	</td>
 				 </tr>
 				  <tr>
 				 	<td>
 				 		<label for="shop_type">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;店铺类型:</label>
 				 	</td>
 				 	<td>
 				 		<select class="form-control" name="shop_type">
    						<option value="">---------------------------------</option>
    						<option value="1">美容</option>
    						
    						
    					</select>
 				 	</td>
 				 	<td>
 				 		<label for="sort_no">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;排序号:</label>
 				 	</td>
 				 	<td>
						<input type="number" class="form-control" id="sort_no2" name="sort_no" placeholder="">
 				 	</td>
 				 </tr>
 				  <tr>
 				 	<td>
 				 		<label for="shop_phone">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;店铺电话:</label>
 				 	</td>
 				 	<td>
 				 		<input type="text" class="form-control" id="shop_phone2" name="shop_phone" placeholder="">
 				 	</td>
 				 	<td>
 				 		<label for="shop_address">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;店铺地址:</label>
 				 	</td>
 				 	<td>
 				 		<input type="text" class="form-control" id="shop_address2" name="shop_address" placeholder="">
 				 	</td>
 				 </tr>
 				  <tr>
 				 	<td>
 				 		<label for="gps_x">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;地址X坐标:</label>
 				 	</td>
 				 	<td>
 				 		<input type="text" class="form-control" id="gps_x2" name="gps_x" placeholder="">
 				 	</td>
 				 	<td>
 				 		<label for="gps_y">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;地址Y坐标:</label>
 				 	</td>
 				 	<td>
 				 		<input type="text" class="form-control" id="gps_y2" name="gps_y" placeholder="">
 				 	</td>
 				 </tr>
 				  <tr>
 				 	<td>
 				 		<label for="shop_remark">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;备注:</label>
 				 	</td>
 				 	<td colspan="3">
 				 		<textarea id="shop_remark2" name="shop_remark" style="width:680px;height:50px;"></textarea>
 				 	</td>
 				 	
 				 </tr>
 				  <tr>
 				 	<td><label for="shop_intro">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;店铺介绍:</label></td>
 				 	<td colspan="3">
 				 		<textarea id="shop_remark2" name="shop_remark" style="width:680px;height:50px;"></textarea>
 				 	</td>
 				 	
 				 </tr>
			</table>	
      	
      
      		<div class="modal-footer">
        		<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
       			<button type="button" class="btn btn-primary" id="baocun">保存</button>
       			
      		</div>
      	
      	</form>
    </div>
  </div>
</div>
		
	

	
<!-- 修改模态框 -->	

<div class="modal fade bs-example-modal-lg" id="myModal2" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel">
  <div class="modal-dialog modal-lg" role="document">
    <div class="modal-content">
    	<form class="form-inline" id="fm3" method="post" action="/bisshop/updateBisShop" enctype ="multipart/form-data">
    		<label for="account">修改店铺信息</label>
      			
      		
      				<table class="table table-bordered">
 				 <tr>
 				 	<td>
 				 		<input type="hidden" class="form-control" id="shop_id1" name="shop_id" placeholder="" value="">
 				 		<label for="owner_id">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;店主账号:</label>
 				 	</td>
 				 	<td>
 				 		<select class="form-control" id="owner_id1" name="owner_id" value="">
    						<option value="">---------------------------------</option>
    					</select>
 				 	</td>
 				 	<td>
 				 		<label for="show_status1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;状态:</label>
 				 	</td>
 				 	<td>
 				 		<select class="form-control" id="show_status1" name="show_status" value="">
    						<option value="">---------------------------------</option>
    						<option value="0">禁用</option>
    						<option value="1">启用</option>
    					</select>
 				 	</td>
 				 </tr>
 				 <tr>
 				 	<td>
 				 		<label for="shop_name">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;店铺名称:</label>
 				 	</td>
 				 	<td>
 				 		<input type="text" class="form-control" id="shop_name1" name="shop_name" value="" placeholder="">
 				 	</td>
 				 	<td>
 				 		<label for="short_name">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;店铺简称:</label>
 				 	</td>
 				 	<td>
 				 		<input type="text" class="form-control" id="short_name1" value="" name="short_name" placeholder="">
 				 	</td>
 				 </tr>
 				 <tr>
 				 	<td>
 				 		<label for="month_cash_in">&nbsp;月目标现金收入:</label>
 				 	</td>
 				 	<td>
 				 		<input type="text" class="form-control" id="month_cash_in1" value="" name="month_cash_in" placeholder="">
 				 	</td>
 				 	<td>
 				 		<label for="month_expend_in">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;月目标消耗收入:</label>
 				 	</td>
 				 	<td>
 				 		<input type="text" class="form-control" id="month_expend_in1" value="" name="month_expend_in" placeholder="">
 				 	</td>
 				 </tr>
 				 <tr>
 				 	<td>
 				 		<label for="shop_image">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;店铺标志:</label>
 				 	</td>
 				 	<td>
 				 		<img src="" id="img1" width="80" height="80"/>
 				 		<input type="file" id="shop_image1" value="" name="file" >
 				 	</td>
 				 	<td>
 				 		<label for="shop_detail_image">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;店铺封面图:</label>
 				 	</td>
 				 	<td>
 				 		<img src="" id="img2" width="80" height="80"/>
 				 		<input type="file" id="shop_detail_image1" value="" name="file" >
 				 	</td>
 				 </tr>
 				  <tr>
 				 	<td>
 				 		<label for="shop_license">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;营业执照号:</label>
 				 	</td>
 				 	<td>
 				 		<input type="text" class="form-control" id="shop_license1" value="" name="shop_license" placeholder="">
 				 	</td>
 				 	<td>
 				 		<label for="times">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;营业时间:</label>
 				 	</td>
 				 	<td>
 				 		<input type="time" class="form-control" id="begin_time1" value="" name="begin_time"  placeholder="">
 				 		<span>-</span>
 				 		<input type="time" class="form-control" id="end_time1" value="" name="end_time" placeholder="">
 				 	</td>
 				 </tr>
 				  <tr>
 				 	<td>
 				 		<label for="shop_area">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;店铺面积:</label>
 				 	</td>
 				 	<td>
 				 		<input type="text" class="form-control" id="shop_area1"value="" name="shop_area" placeholder="">m²		
 				 	</td>
 				 	<td>
 				 		<label for="shop_project">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;主营项目:</label>
 				 	</td>
 				 	<td>
 				 		<input type="text" class="form-control" id="shop_project1" value="" name="shop_project" placeholder="">
 				 	</td>
 				 </tr>
 				  <tr>
 				 	<td>
 				 		<label for="shop_type">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;店铺类型:</label>
 				 	</td>
 				 	<td>
 				 		<select class="form-control" id="shop_type1" name="shop_type" value="">
    						<option value="">---------------------------------</option>
    						<option value="1">美容</option>
    					</select>
 				 	</td>
 				 	<td>
 				 		<label for="sort_no">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;排序号:</label>
 				 	</td>
 				 	<td>
						<input type="number" class="form-control" id="sort_no1" value="" name="sort_no" placeholder="">
 				 	</td>
 				 </tr>
 				  <tr>
 				 	<td>
 				 		<label for="shop_phone">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;店铺电话:</label>
 				 	</td>
 				 	<td>
 				 		<input type="text" class="form-control" id="shop_phone1" value="" name="shop_phone" placeholder="">
 				 	</td>
 				 	<td>
 				 		<label for="shop_address">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;店铺地址:</label>
 				 	</td>
 				 	<td>
 				 		<input type="text" class="form-control" id="shop_address1" value="" name="shop_address" placeholder="">
 				 	</td>
 				 </tr>
 				  <tr>
 				 	<td>
 				 		<label for="gps_x">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;地址X坐标:</label>
 				 	</td>
 				 	<td>
 				 		<input type="text" class="form-control" id="gps_x1" value="" name="gps_x" placeholder="">
 				 	</td>
 				 	<td>
 				 		<label for="gps_y">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;地址Y坐标:</label>
 				 	</td>
 				 	<td>
 				 		<input type="text" class="form-control" id="gps_y1" value="" name="gps_y" placeholder="">
 				 	</td>
 				 </tr>
 				  <tr>
 				 	<td>
 				 		<label for="shop_remark">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;备注:</label>
 				 	</td>
 				 	<td colspan="3">
 				 		<textarea id="shop_remark1" name="shop_remark" value="" style="width:680px;height:50px;" ></textarea>
 				 	</td>
 				 	
 				 </tr>
 				  <tr>
 				 	<td><label for="shop_intro">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;店铺介绍:</label></td>
 				 	<td colspan="3">
 				 		
 				 		<!--<textarea id="shop_intro" name="shop_intro" style="width:680px;height:50px;">请输入店铺详情</textarea>-->
 				 		<textarea id="shop_intro1" name="shop_intro" value="" style="width:680px;height:50px;"></textarea>
 				 	</td>
 				 	
 				 </tr>
			</table>
      		
      		
      		
      		
      		
      			<div class="modal-footer">
        			<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
       				<button type="button" class="btn btn-primary" onclick="updas()">保存</button>
      			</div>
      	</form>	
    </div>
  </div>
</div>


<!-- 查看详情模态框 -->	
<div class="modal fade bs-example-modal-lg" id="myModal3" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel">
  <div class="modal-dialog modal-lg" role="document">
    <div class="modal-content">
    
    <form class="form-inline" id="fm2">
    		<label for="account">查看店铺信息</label>
    	<table class="table table-bordered">
 				 <tr>
 				 	<td>
 				 		<label for="owner_id">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;店主账号:</label>
 				 	</td>
 				 	<td>
 				 		<input type="hidden" class="form-control" id="shop_idc" name="shop_id" placeholder="" value="">
 				 		<select class="form-control" id="owner_id3" name="owner_id" value="">
    						<option value="">---------------------------------</option>
    					</select>
 				 	</td>
 				 	<td>
 				 		<label for="show_status3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;状态:</label>
 				 	</td>
 				 	<td>
 				 		<select class="form-control" id="show_status3" name="show_status" value="">
    						<option value="">---------------------------------</option>
    						<option value="0">禁用</option>
    						<option value="1">启用</option>
    					</select>
 				 	</td>
 				 </tr>
 				 <tr>
 				 	<td>
 				 		<label for="shop_name">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;店铺名称:</label>
 				 	</td>
 				 	<td>
 				 		<input type="text" class="form-control" id="shop_name3" name="shop_name" value="" placeholder="">
 				 	</td>
 				 	<td>
 				 		<label for="short_name">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;店铺简称:</label>
 				 	</td>
 				 	<td>
 				 		<input type="text" class="form-control" id="short_name3" value="" name="short_name" placeholder="">
 				 	</td>
 				 </tr>
 				 <tr>
 				 	<td>
 				 		<label for="month_cash_in">&nbsp;月目标现金收入:</label>
 				 	</td>
 				 	<td>
 				 		<input type="text" class="form-control" id="month_cash_in3" value="" name="month_cash_in" placeholder="">
 				 	</td>
 				 	<td>
 				 		<label for="month_expend_in">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;月目标消耗收入:</label>
 				 	</td>
 				 	<td>
 				 		<input type="text" class="form-control" id="month_expend_in3" value="" name="month_expend_in" placeholder="">
 				 	</td>
 				 </tr>
 				 <tr>
 				 	<td>
 				 		<label for="shop_image">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;店铺标志:</label>
 				 	</td>
 				 	<td>
 				 		<img src="" id="img3" width="80" height="80"/>
 				 		<input type="file" id="shop_image3" value="" name="files" >
 				 	</td>
 				 	<td>
 				 		<label for="shop_detail_image">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;店铺封面图:</label>
 				 	</td>
 				 	<td>
 				 		<img src="" id="img4" width="80" height="80"/>
 				 		<input type="file" id="shop_detail_image3" value="" name="files" >
 				 	</td>
 				 </tr>
 				  <tr>
 				 	<td>
 				 		<label for="shop_license">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;营业执照号:</label>
 				 	</td>
 				 	<td>
 				 		<input type="text" class="form-control" id="shop_license3" value="" name="shop_license" placeholder="">
 				 	</td>
 				 	<td>
 				 		<label for="times">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;营业时间:</label>
 				 	</td>
 				 	<td>
 				 		<input type="time" class="form-control" id="begin_time3" value="" name="begin_time"  placeholder="">
 				 		<span>-</span>
 				 		<input type="time" class="form-control" id="end_time3" value="" name="end_time" placeholder="">
 				 	</td>
 				 </tr>
 				  <tr>
 				 	<td>
 				 		<label for="shop_area">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;店铺面积:</label>
 				 	</td>
 				 	<td>
 				 		<input type="text" class="form-control" id="shop_area3"value="" name="shop_area" placeholder="">m²		
 				 	</td>
 				 	<td>
 				 		<label for="shop_project">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;主营项目:</label>
 				 	</td>
 				 	<td>
 				 		<input type="text" class="form-control" id="shop_project3" value="" name="shop_project" placeholder="">
 				 	</td>
 				 </tr>
 				  <tr>
 				 	<td>
 				 		<label for="shop_type">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;店铺类型:</label>
 				 	</td>
 				 	<td>
 				 		<select class="form-control" id="shop_type3" name="shop_type" value="">
    						<option value="">---------------------------------</option>
    						<option value="1">美容</option>
    					</select>
 				 	</td>
 				 	<td>
 				 		<label for="sort_no">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;排序号:</label>
 				 	</td>
 				 	<td>
						<input type="number" class="form-control" id="sort_no3" value="" name="sort_no" placeholder="">
 				 	</td>
 				 </tr>
 				  <tr>
 				 	<td>
 				 		<label for="shop_phone">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;店铺电话:</label>
 				 	</td>
 				 	<td>
 				 		<input type="text" class="form-control" id="shop_phone3" value="" name="shop_phone" placeholder="">
 				 	</td>
 				 	<td>
 				 		<label for="shop_address">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;店铺地址:</label>
 				 	</td>
 				 	<td>
 				 		<input type="text" class="form-control" id="shop_address3" value="" name="shop_address" placeholder="">
 				 	</td>
 				 </tr>
 				  <tr>
 				 	<td>
 				 		<label for="gps_x">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;地址X坐标:</label>
 				 	</td>
 				 	<td>
 				 		<input type="text" class="form-control" id="gps_x3" value="" name="gps_x" placeholder="">
 				 	</td>
 				 	<td>
 				 		<label for="gps_y">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;地址Y坐标:</label>
 				 	</td>
 				 	<td>
 				 		<input type="text" class="form-control" id="gps_y3" value="" name="gps_y" placeholder="">
 				 	</td>
 				 </tr>
 				  <tr>
 				 	<td>
 				 		<label for="shop_remark">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;备注:</label>
 				 	</td>
 				 	<td colspan="3">
 				 		<textarea id="shop_remark3" name="shop_remark" value="" style="width:680px;height:50px;" ></textarea>
 				 	</td>
 				 	
 				 </tr>
 				  <tr>
 				 	<td><label for="shop_intro">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;店铺介绍:</label></td>
 				 	<td colspan="3">
 				 		
 				 		<!--<textarea id="shop_intro" name="shop_intro" style="width:680px;height:50px;">请输入店铺详情</textarea>-->
 				 		<textarea id="shop_intro3" name="shop_intro" value="" style="width:680px;height:50px;"></textarea>
 				 	</td>
 				 	
 				 </tr>
			</table>
    			
    
    
    
    
    
      		<div class="modal-footer">
        		<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
      		</div>
      	</form>
    </div>
  </div>
</div>	
	
		<div >
			<table id="table">
			</table>
		</div>
</body>

<script type="text/javascript">
		
			$(function() {
				

				//1.初始化Table

				var oTable = new TableInit();

				oTable.Init();

				
			});
				
				
				var TableInit=function(){
					var oTableInit=new Object();
					//初始化table
					oTableInit.Init=function(){
						
					
					
				$("#table").bootstrapTable({
					method:'get',
					url:"/bisshop/",	//请求后台的url（*）
						striped: true, //是否显示行间隔色

						locale: 'zh-CN', //中文支持

						pagination: true, //是否开启分页（*）

						pageNumber: 1, //初始化加载第一页，默认第一页

						pageSize: 3, //每页的记录行数（*）

						pageList: [3, 5, 9], //可供选择的每页的行数（*）

						sidePagination: "server", //分页方式：client客户端分页，server服务端分页（*）

						/* showRefresh: true, //刷新按钮 */

						queryParams: oTableInit.queryParams, //传递参数（*）

						strictSearch: true,

						/* showColumns: true, //是否显示所有的列 */

						/* showRefresh: true, //是否显示刷新按钮 */

						minimumCountColumns: 2, //最少允许的列数

						/* clickToSelect: true, //是否启用点击选中行 */

						uniqueId: "project_id", //每一行的唯一标识，一般为主键列

						columns: [{
							field: 'shop_id',
							title: '店铺编号',
							align: 'center',
						}, {
							field: 'shop_name',
							title: '店铺名称',
							align: 'center',
						}, {
							field: 'short_name',
							title: '店铺简称',
							align: 'center',
						}, {
							field: 'account',
							title: '店主账号',
							align: 'center',
						}, {
							field: 'username',
							title: '店铺法人',
							align: 'center',
						}, {
							field: 'shop_license',
							title: '营业执照号',
							align: 'center',
						}, {
							field: 'shop_phone',
							title: '店铺电话',
							align: 'center',
						}, {
							/*field: 'show_status',
							title: '状态',
							align: 'center',
							formatter:function(v,r,i){
								switch (Number(v)){
									case 0:
										return "禁用";
										break;
									case 1:
										return "启用";
										break;
								}
							}*/
							field:'show_status',
							title:'状态',
							align:'center',
							formatter:function(v,r,i){
								console.log("kkkkk=="+r.show_status);
								if(v == '0') {
									return "禁用";
								} else if (v == '1') {
									return "启用";
								}
							}
						}, {
							field: 'sort_no',
							title: '排序号',
							align: 'center',
						}, {
							field: 'modify_time',
							title: '更新时间',
							align: 'center',
							formatter: function (value, row, index) {
                				return changeDateFormat(value)
							}
						}, {
							
							title: '操作',
							align: 'center',
							formatter : function(v,r,i){
								return '<button onclick="dele('+r.shop_id+')" class="btn btn-warning">删除<span class="glyphicon glyphicon-remove" aria-hidden="true"></span></button><button onclick="upda('+r.shop_id+')" class="btn btn-warning" data-toggle="modal" data-target="#myModal2">修改<span class="glyphicon glyphicon-pencil" aria-hidden="true"></span></button><button onclick="sele('+r.shop_id+')" class="btn btn-warning" data-toggle="modal" data-target="#myModal3">查看详情</button> '
							}
						}]
					});
					};
			
					//得到查询的参数

					oTableInit.queryParams = function(params) {

						var temp = { //这里的键的名字和控制器的变量名必须一直，这边改动，控制器也需要改成一样的

							limit: params.limit, //页面大小

							offset: params.offset, //偏移量
							pageSize:params.limit,
							shop_id:$("#shop_id").val(),
							shop_name:$("#shop_name").val(),
							account:$("#account").val(),
							short_name:$("#short_name").val(),
							shop_license:$("#shop_license").val(),
							show_status:$("#show_status").val(),
						};
						return temp;
					};
					return oTableInit;
				};
				
				//添加的下拉框查询
				$.ajax({
					type:"post",
					url:"/bisshopuser/",
					success:function(data){
						var items=data.rows;
						console.log('--------------'+items);
						for (i=0;i<items.length;i++) {
							
							$("#owner_id").append("<option value='"+items[i].shop_user_id+"'>"+items[i].account+"</option>");
							$("#owner_id1").append("<option value='"+items[i].shop_user_id+"'>"+items[i].account+"</option>")
							$("#owner_id3").append("<option value='"+items[i].shop_user_id+"'>"+items[i].account+"</option>");
						}
					}
				});
				
				
				//删除
				function dele(shop_id){
					
					$.ajax({
						
						type:"post",
						url:"/bisshop/del/"+shop_id,
						dataType:"json",
						success:function(data){
							$("#table").bootstrapTable('refresh');
						},
					})
				}
				
				//修改先查一遍
				function upda(shop_id){
					
					$.ajax({
						type:"post",
						url:"/bisshop/updateAll",
						data:{
							shop_id:shop_id
						},
						success:function(data){
							
							$("#shop_id1").val(data.shop_id),
							$("#show_status1").val(data.show_status),
							$("#owner_id1").val(data.owner_id),
							$("#shop_name1").val(data.shop_name),
							$("#short_name1").val(data.short_name),
							$("#month_cash_in1").val(data.month_cash_in),
							$("#month_expend_in1").val(data.month_expend_in),
							$("#img1").attr("src",data.shop_image),
							$("#img2").attr("src",data.shop_detail_image),
							$("#shop_license1").val(data.shop_license),
							$("#begin_time1").val(data.begin_time),
							$("#end_time1").val(data.end_time),
							$("#shop_area1").val(data.shop_area),
							$("#shop_project1").val(data.shop_project),
							$("#shop_type1").val(data.shop_type),
							$("#sort_no1").val(data.sort_no),
							$("#shop_phone1").val(data.shop_phone),
							$("#shop_address1").val(data.shop_address),
							$("#gps_x1").val(data.gps_x),
							$("#gps_y1").val(data.gps_y),
							$("#shop_remark1").val(data.shop_remark),
							$("#shop_address1").val(data.shop_address)
							
							
						}
					})
				}
				//修改
				function updas(shop_id){
					
					/*$.ajax({
						type:"post",
						url:"/bisshop/updateBisShop",
						data:{
							shop_id:$("#shop_id1").val(),
							show_status:$("#show_status1").val(),
							owner_id:$("#owner_id1").val(),
							shop_name:$("#shop_name1").val(),
							short_name:$("#short_name1").val(),
							month_cash_in:$("#month_cash_in1").val(),
							month_expend_in:$("#month_expend_in1").val(),
							shop_image:$("#shop_image1").val(),
							shop_detail_image:$("#shop_detail_image1").val(),
							shop_license:$("#shop_license1").val(),
							begin_time:$("#begin_time1").val(),
							end_time:$("#end_time1").val(),
							shop_area:$("#shop_area1").val(),
							shop_project:$("#shop_project1").val(),
							shop_type:$("#shop_type1").val(),
							sort_no:$("#sort_no1").val(),
							shop_phone:$("#shop_phone1").val(),
							shop_address:$("#shop_address1").val(),
							gps_x:$("#gps_x1").val(),
							gps_y:$("#gps_y1").val(),
							shop_remark:$("#shop_remark1").val(),
							shop_address:$("#shop_address1").val()
							
							
						},
						success:function(data){
							$("#myModal2").modal('hide');
							$("#table").bootstrapTable("refresh");
						}
					});*/
					$("#fm3").submit();
						$("#myModal2").modal("hide");
					
				}
				//查看详情
				function sele(shop_id){
					$.ajax({
						type:"post",
						url:"/bisshop/updateAll",
						data:{
							shop_id:shop_id
						},
						success:function(data){
							$("#shop_idc").val(data.shop_id),
							$("#show_status3").val(data.show_status),
							$("#owner_id3").val(data.owner_id),
							$("#shop_name3").val(data.shop_name),
							$("#short_name3").val(data.short_name),
							$("#month_cash_in3").val(data.month_cash_in),
							$("#month_expend_in3").val(data.month_expend_in),
							$("#img3").attr("src",data.shop_image),
							$("#img4").attr("src",data.shop_detail_image),
							$("#shop_license3").val(data.shop_license),
							$("#begin_time3").val(data.begin_time),
							$("#end_time3").val(data.end_time),
							$("#shop_area3").val(data.shop_area),
							$("#shop_project3").val(data.shop_project),
							$("#shop_type3").val(data.shop_type),
							$("#sort_no3").val(data.sort_no),
							$("#shop_phone3").val(data.shop_phone),
							$("#shop_address3").val(data.shop_address),
							$("#gps_x3").val(data.gps_x),
							$("#gps_y3").val(data.gps_y),
							$("#shop_remark3").val(data.shop_remark),
							$("#shop_address3").val(data.shop_address)
							
							
						}
					})
				}
				
				//添加
				$("#baocun").click(function(){
					
						
						$("#fm").submit();
						$("#myModal").modal("hide");
					
				})
				
				//模糊查询
				$('#butt').click(function(){
					
					$("#table").bootstrapTable('refresh');
				})
				
				
				
		
			
</script>
		<script type="text/javascript">
	function changeDateFormat(cellval) {
        var dateVal = cellval + "";
        if (cellval != null) {
            var date = new Date(parseInt(dateVal.replace("/Date(", "").replace(")/", ""), 10));
            var month = date.getMonth() + 1 < 10 ? "0" + (date.getMonth() + 1) : date.getMonth() + 1;
            var currentDate = date.getDate() < 10 ? "0" + date.getDate() : date.getDate();
            
            var hours = date.getHours() < 10 ? "0" + date.getHours() : date.getHours();
            var minutes = date.getMinutes() < 10 ? "0" + date.getMinutes() : date.getMinutes();
            var seconds = date.getSeconds() < 10 ? "0" + date.getSeconds() : date.getSeconds();
            
            return date.getFullYear() + "-" + month + "-" + currentDate + " " + hours + ":" + minutes + ":" + seconds;
        }
    }
	
	

	</script>
	
</html>